#include "GuiManager.h"
#include "Common.h"
#include "WindowManager.h"

GuiManager::GuiManager(void)
{
}

GuiManager::~GuiManager(void)
{
}

GuiManager* GuiManager::GetInstance()
{
	if(m_pInstance == NULL)
	{
		m_pInstance = new GuiManager();
	}

	return m_pInstance;
}

void GuiManager::Draw() const
{
	Size2i size = WindowManager::GetSize();

	glMatrixMode(GL_PROJECTION);
	glLoadIdentity();
	glOrtho(0, size.Width, size.Height, 0, 0, 1);

	glMatrixMode(GL_MODELVIEW);
	glLoadIdentity();

	glDisable(GL_DEPTH_TEST);
}

GuiManager* GuiManager::m_pInstance = NULL;